<template>
  <div class="sale-item">
    <div class="item-left">
      <div class="sale-price">5<span>元</span></div>
    </div>
    <div class="item-center">
      <p class="title">包图披萨旗舰店</p>
      <p class="desc">满100元可用,每次仅限使用一张</p>
      <p class="time">有效期至:2019-12-30</p>
    </div>
    <div class="item-right">
      <div class="use">立即使用</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "saleItem",
};
</script>

<style lang="scss" scoped>
.sale-item {
  width: 9.333333rem;
  height: 2.666667rem;
  margin: 0.333333rem;
  margin-bottom: 0;
  background: url("../../static/img/sale-item-bg.png") no-repeat center;
  background-size: 100% 100%;
  overflow: hidden;
  display: flex;
  justify-content: space-around;
  .item-left {
    width: 3.066667rem;
    height: 2.666667rem;
    overflow: hidden;
    .sale-price {
      font-size: 1.6rem;
      color: #fff;
      text-align: center;
      padding-top: 0.093333rem;
      span {
        font-size: 0.533333rem;
        padding-left: 0.066667rem;
      }
    }
  }
  .item-center {
    flex: 1;
    height: 100%;
    box-sizing: border-box;
    padding-left: 0.36rem;
    padding-top: 0.44rem;
    border-right: 1px solid #f5f5f5;
    .title {
      color: #333;
      font-size: 0.426667rem;
      padding-bottom: 0.066667rem;
    }
    .desc {
      color: #999;
      font-size: 0.32rem;
      padding-bottom: 0.066667rem;
    }
    .time {
      color: #ccc;
      font-size: 0.32rem;
    }
  }
  .item-right {
    width: 1.146667rem;
    height: 100%;
    writing-mode: vertical-lr;
    font-size: 0.4rem;
    color: #169cf9;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
  }
}
</style>